<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class LoggerRendererMap</title>
			<link rel="stylesheet" href="../../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class LoggerRendererMap</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Map class objects to an <a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a>.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Marco Vassura</li>
				<li><span class="field">version:</span> $Revision: 556784 $</li>
				<li><span class="field">since:</span> 0.3</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_or---LoggerRendererMap.php.html">/or/LoggerRendererMap.php</a> (line <span class="field">33</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																<div class="var-title">
					<span class="var-type"><a href="../../log4php/or/LoggerDefaultRenderer.html">LoggerDefaultRenderer</a></span>
					<a href="#$defaultRenderer" title="details" class="var-name">$defaultRenderer</a>
				</div>
																<div class="var-title">
					<span class="var-type">array</span>
					<a href="#$map" title="details" class="var-name">$map</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#addRenderer" title="details" class="method-name">addRenderer</a>
											(<span class="var-type"><a href="../../log4php/LoggerHierarchy.html">LoggerHierarchy</a></span>&nbsp;<span class="var-name">$repository</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$renderedClassName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$renderingClassName</span>)
									</div>
																																																																
												<div class="method-definition">
											<span class="method-result">LoggerRendererMap</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
										()
									</div>
																								<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#clear" title="details" class="method-name">clear</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#findAndRender" title="details" class="method-name">findAndRender</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a></span>
										<a href="#getByClassName" title="details" class="method-name">getByClassName</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">string</span>
										<a href="#getByObject" title="details" class="method-name">getByObject</a>
											(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$o</span>)
									</div>
																<div class="method-definition">
											<span class="method-result"><a href="../../log4php/or/LoggerDefaultRenderer.html">LoggerDefaultRenderer</a></span>
										<a href="#getDefaultRenderer" title="details" class="method-name">getDefaultRenderer</a>
										()
									</div>
																<div class="method-definition">
											<span class="method-result">void</span>
										<a href="#put" title="details" class="method-name">put</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>, <span class="var-type"><a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a></span>&nbsp;<span class="var-name">$or</span>)
									</div>
																<div class="method-definition">
											<span class="method-result">boolean</span>
										<a href="#rendererExists" title="details" class="method-name">rendererExists</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>)
									</div>
								</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$defaultRenderer" id="$defaultRenderer"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type"><a href="../../log4php/or/LoggerDefaultRenderer.html">LoggerDefaultRenderer</a></span>
			<span class="var-name">$defaultRenderer</span>
						(line <span class="line-number">43</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$map" id="$map"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$map</span>
						(line <span class="line-number">38</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodaddRenderer" id="addRenderer"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">static method addRenderer</span> (line <span class="line-number">63</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add a renderer to a hierarchy passed as parameter.</p>
<p class="description"><p>Note that hierarchy must implement getRendererMap() and setRenderer() methods.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			addRenderer
		</span>
					(<span class="var-type"><a href="../../log4php/LoggerHierarchy.html">LoggerHierarchy</a></span>&nbsp;<span class="var-name">$repository</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$renderedClassName</span>, <span class="var-type">string</span>&nbsp;<span class="var-name">$renderingClassName</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../../log4php/LoggerHierarchy.html">LoggerHierarchy</a></span>
				<span class="var-name">$repository</span><span class="var-description">: a logger repository.</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$renderedClassName</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$renderingClassName</span>			</li>
				</ul>
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">48</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">LoggerRendererMap</span>
		<span class="method-name">
			__construct
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodclear" id="clear"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">clear</span> (line <span class="line-number">149</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			clear
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodfindAndRender" id="findAndRender"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">findAndRender</span> (line <span class="line-number">88</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Find the appropriate renderer for the class type of the  <var>o</var> parameter.</p>
<p class="description"><p>This is accomplished by calling the <a href="../../log4php/or/LoggerRendererMap.html#methodgetByObject">getByObject()</a>  method if <var>o</var> is object or using <a href="../../log4php/or/LoggerDefaultRenderer.html">LoggerDefaultRenderer</a>.  Once a renderer is found, it is applied on the object <var>o</var> and  the result is returned as a string.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			findAndRender
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$o</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetByClassName" id="getByClassName"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getByClassName</span> (line <span class="line-number">129</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Search the parents of <var>clazz</var> for a renderer.</p>
<p class="description"><p>The renderer closest in the hierarchy will be returned. If no  renderers could be found, then the default renderer is returned.</p></p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a></span>
		<span class="method-name">
			getByClassName
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetByObject" id="getByObject"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">getByObject</span> (line <span class="line-number">114</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Syntactic sugar method that calls <a href="http://www.php.net/get_class">http://www.php.net/get_class</a> with the  class of the object parameter.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getByObject
		</span>
					(<span class="var-type">mixed</span>&nbsp;<span class="var-name">$o</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$o</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetDefaultRenderer" id="getDefaultRenderer"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">getDefaultRenderer</span> (line <span class="line-number">143</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result"><a href="../../log4php/or/LoggerDefaultRenderer.html">LoggerDefaultRenderer</a></span>
		<span class="method-name">
			getDefaultRenderer
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodput" id="put"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">put</span> (line <span class="line-number">159</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Register a <a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a> for <var>clazz</var>.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			put
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>, <span class="var-type"><a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a></span>&nbsp;<span class="var-name">$or</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class</span>			</li>
					<li>
				<span class="var-type"><a href="../../log4php/or/LoggerObjectRenderer.html">LoggerObjectRenderer</a></span>
				<span class="var-name">$or</span>			</li>
				</ul>
		
			
	</div>
<a name="methodrendererExists" id="rendererExists"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">rendererExists</span> (line <span class="line-number">168</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			rendererExists
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$class</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$class</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.3.2</a>
	</p>
	</div></body>
</html>